package com.iweb.model;

import lombok.Data;
import org.bson.types.Binary;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.time.LocalDateTime;

@Data
@Document
public class ImageFile {
    @Id
    private String id; // id

    private String name; // 文件名

    private Long pos; // 图片的序号

    private String contentType; // 文件类型

    private Long size; // 文件大小

    private LocalDateTime uploadTime; // 文件上传时间

    private Binary content;

    private String url;

}
